// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/libs/request';

// 职称类别列表
export function getMasterJobList(data) {
  return request({
    url: 'master/masterJob',
    method: 'get',
    params: data,
  });
}

// 新增或编辑职称类别
export function setMasterJob(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 职称类别详情
export function getMasterJobDetail(id) {
  return request({
    url: `master/masterJob/${id}`,
    method: 'get',
  });
}

// 职称类别列表（全部）
export function getMasterJobAll(data) {
    return request({
      url: 'master/masterJobAll',
      method: 'get',
      params: data,
    });
  }

// 专家列表
export function getMasterList(data) {
  return request({
    url: 'master/master',
    method: 'get',
    params: data,
  });
}

// 新增或编辑专家
export function setMaster(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 专家类别详情
export function getMasterDetail(id) {
  return request({
    url: `master/master/${id}`,
    method: 'get',
  });
}
